@charset "utf-8";

:root{
    --font-body: "Nunito", system-ui, sans-serif;
    --font-display: "Rajdhani", sans-serif;
    --font-nav: "Oswald", sans-serif;

    --bg-dark: #050506;
    --bg-panel: #121317;
    --bg-nav: rgba(8, 8, 10, .88);
    --text-primary: #f4efe6;
    --text-muted: #b8b0a4;
    --chrome: #f0ead8;
    --yellow: #f5d000;
    --blue: #1d4ed8;
    --red: #e31c28;
    --rust: var(--red);
    --navy: var(--blue);
    --line: rgba(240, 234, 216, .16);
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --nav-h: 4.25rem;
    --text-secondary: var(--text-muted);
    --noob-blue: #c9d6ff;
    --tastics-orange: var(--red);
    --tastics-yellow: var(--yellow);
    --gradient: linear-gradient(135deg, #e31c28 0%, #f5d000 55%, #1d4ed8 130%);
    --radius-lg: .7rem;
}

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

body{
    font-size: 16px;
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

html{ scroll-behavior: smooth; }

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

img{ max-width: 100%; height: auto; display: block; }

button{
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

h1, h2, h3, .nav-brand, .btn{
    font-family: var(--font-display);
}

#main{
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* ---------- Nav ---------- */
#nav{
    position: sticky;
    top: 0;
    z-index: 80;
    overflow: visible;
    padding-top: env(safe-area-inset-top);
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    background: var(--bg-nav);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}

#nav::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--red) 0 34%, var(--chrome) 34% 66%, var(--blue) 66% 100%);
    opacity: .85;
}

.nav-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    gap: 1.5rem;
}

.nav-left{
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    flex: 1 1 auto;
}

.nav-links{
    display: flex;
    align-items: center;
    gap: .15rem;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-home,
.nav-item,
.nav-drop > button{
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-home{
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
    font-family: var(--font-nav);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--chrome);
    border-radius: .4rem;
    text-decoration: none;
    transition: color .35s var(--ease), background .35s var(--ease);
}
.nav-home i{
    font-size: .9rem;
}
.nav-home:hover,
.nav-home:focus-visible,
.nav-home.is-active{
    color: #fff;
    background: rgba(255,255,255,.05);
}

.nav-item{
    display: inline-flex;
    align-items: center;
    padding: .55rem .9rem;
    font-family: var(--font-nav);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--chrome);
    border-radius: .4rem;
    text-decoration: none;
    transition: color .35s var(--ease), background .35s var(--ease);
}
.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active{
    color: #fff;
    background: rgba(255,255,255,.05);
}

.nav-drop{
    position: relative;
}

.nav-drop > button{
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .9rem;
    font-family: var(--font-nav);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--chrome);
    border-radius: .4rem;
    transition: color .35s var(--ease), background .35s var(--ease);
}

.nav-drop > button .chev{
    width: .55rem;
    height: .55rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .35s var(--ease);
    opacity: .7;
}

.nav-drop:hover > button,
.nav-drop.is-open > button,
.nav-drop.is-active > button{
    color: #fff;
    background: rgba(255,255,255,.05);
}

.nav-drop.is-open > button .chev,
.nav-drop:hover > button .chev{
    transform: rotate(225deg) translateY(-1px);
}

.nav-sub{
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 9.5rem;
    padding: .65rem .4rem .4rem;
    list-style: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(.2rem);
    pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
    z-index: 90;
}

.nav-sub > li > a,
.nav-sub > li{
    position: relative;
}

.nav-sub > li:first-child > a{
    border-radius: .55rem .55rem .35rem .35rem;
}

.nav-sub::before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: .55rem;
    bottom: 0;
    background: #101114;
    border: 1px solid var(--line);
    border-radius: .55rem;
    box-shadow: var(--shadow);
    z-index: -1;
}

.nav-drop.is-open .nav-sub,
.nav-drop:focus-within .nav-sub,
#nav > .nav-sub.is-docked{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

#nav > .nav-sub.is-docked{
    position: absolute;
    top: calc(100% + 2px);
    left: .5rem;
    right: .5rem;
    min-width: 0;
    z-index: 95;
}

.nav-sub a{
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .8rem;
    font-family: var(--font-nav);
    font-size: .88rem;
    letter-spacing: .12em;
    color: var(--text-muted);
    border-radius: .35rem;
    transition: color .28s var(--ease), background .28s var(--ease);
}

.nav-sub a i{
    width: .95rem;
    text-align: center;
    opacity: .8;
}

.nav-sub a:hover,
.nav-sub a.is-active{
    color: #fff;
    background: rgba(227, 28, 40, .16);
}

.nav-right{
    display: flex;
    align-items: center;
    gap: .55rem;
    flex: 0 0 auto;
}

.nav-lang{
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: .4rem;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}

.nav-lang:hover,
.nav-lang:focus-visible{
    border-color: rgba(227, 28, 40, .55);
    background: rgba(227, 28, 40, .12);
    transform: translateY(-1px);
}

.nav-flag{
    display: block;
    width: 1.45rem;
    height: .95rem;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}

.nav-flag--de{
    background: linear-gradient(to bottom, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
}

.nav-flag--us{
    background:
        linear-gradient(to bottom,
            #b22234 0 7.7%, #fff 7.7% 15.4%,
            #b22234 15.4% 23.1%, #fff 23.1% 30.8%,
            #b22234 30.8% 38.5%, #fff 38.5% 46.2%,
            #b22234 46.2% 53.9%, #fff 53.9% 61.6%,
            #b22234 61.6% 69.3%, #fff 69.3% 77%,
            #b22234 77% 84.7%, #fff 84.7% 92.4%,
            #b22234 92.4% 100%);
    position: relative;
    overflow: hidden;
}

.nav-flag--us::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 40%;
    height: 53.8%;
    background: #3c3b6e;
}

.nav-sub--user{
    left: auto;
    right: 0;
    min-width: 14.5rem;
}

.nav-sub-sep{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .5rem .35rem;
    pointer-events: none;
}

.nav-sub-sep span{
    font-family: var(--font-nav);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(196, 196, 204, .55);
    white-space: nowrap;
}

.nav-user{
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 50%;
    color: var(--chrome);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}

.nav-drop--user.is-open .nav-user,
.nav-user:hover,
.nav-user:focus-visible{
    color: #fff;
    border-color: rgba(227, 28, 40, .55);
    background: rgba(227, 28, 40, .12);
    transform: translateY(-1px);
}

.nav-user i{ font-size: .92rem; }

.section-kicker{
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .85rem;
    color: var(--rust);
    margin-bottom: 10px;
    text-align: center;
}

.section-title{
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    margin-bottom: 12px;
}

.auth-card{
    position: relative;
}

.auth-card:has(.page-home){
    padding-inline: 1.4rem 5.4rem;
}

.page-home{
    position: absolute;
    top: 1.1rem;
    right: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(227, 28, 40, .55);
    background: linear-gradient(135deg, rgba(227, 28, 40, .22), rgba(212, 165, 116, .12));
    color: var(--tastics-yellow);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 860px){
    :root{ --nav-h: 4.6rem; }
    .nav-inner{
        width: calc(100% - 1rem);
        gap: .5rem;
    }
    .nav-left{
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.1rem), transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.1rem), transparent 100%);
    }
    .nav-left::-webkit-scrollbar{ display: none; }
    .nav-drop > button{
        min-height: 44px;
        padding: .55rem .55rem;
        letter-spacing: .06em;
    }
    .nav-home{
        min-height: 44px;
        padding: .55rem .55rem;
        letter-spacing: .06em;
    }
    .nav-item{
        min-height: 44px;
        padding: .55rem .55rem;
        letter-spacing: .06em;
    }
    .nav-right{
        position: relative;
        z-index: 2;
        padding-left: .15rem;
        background: var(--bg-nav);
        box-shadow: -12px 0 14px 6px rgba(14, 16, 22, .92);
    }
    .nav-user{
        width: 2.75rem;
        height: 2.75rem;
    }
    .nav-lang{
        width: 2.75rem;
        height: 2.75rem;
    }
}

@media (max-width: 640px){
    .nav-inner{ width: calc(100% - .85rem); }
    .nav-home span{ display: none; }
    .page-home span{ display: none; }
    .auth-card:has(.page-home){ padding-inline: 1.15rem 3.4rem; }
}

@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
}
