/* Shared top navigation styles (index, tools, games, services, kontakt + tool/game subpages) */

.menu,
.services_page_topbar,
.contact_page_topbar,
.desktop_quick_nav,
.top_links,
.index_top_links {
    position: fixed;
    top: 18px;
    left: clamp(4px, 2.2vw, 28px);
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    margin: 0;
}

.menu a,
.services_page_link,
.contact_page_link,
.desktop_quick_nav a,
.top_links > .top_link,
.index_top_link,
.game_reaction .game_home_btn,
.home-button {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.28rem 0.64rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
    color: rgba(236, 244, 255, 0.96);
    text-decoration: none;
    font-family: var(--font-heading, "Outfit", Arial, Helvetica, sans-serif);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.game_reaction .game_home_btn {
    position: fixed;
    top: 18px;
    left: clamp(4px, 2.2vw, 28px);
    z-index: 30;
    margin: 0;
    min-width: 0;
    width: auto;
}

.menu a .material-symbols-outlined,
.services_page_link .material-symbols-outlined,
.contact_page_link .material-symbols-outlined,
.desktop_quick_nav a .material-symbols-outlined,
.top_links > .top_link .material-symbols-outlined,
.index_top_link .material-symbols-outlined,
.game_reaction .game_home_btn .material-symbols-outlined,
.home-button .material-symbols-outlined {
    font-size: 1em;
    line-height: 1;
    color: #ffffff;
}

.menu a:hover,
.services_page_link:hover,
.contact_page_link:hover,
.desktop_quick_nav a:hover,
.top_links > .top_link:hover,
.index_top_link:hover,
.game_reaction .game_home_btn:hover,
.home-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.56);
    color: #ffffff;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

/* Startpage quick nav buttons (visual sync only; behavior stays in page CSS/JS) */
#quick_nav .quick_nav_toggle,
#quick_nav .quick_nav_item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.28rem;
    min-width: 0;
    min-height: 0;
    width: auto;
    padding: 0.28rem 0.64rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
    color: rgba(236, 244, 255, 0.96);
    font-family: var(--font-heading, "Outfit", Arial, Helvetica, sans-serif);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
}

#quick_nav .quick_nav_menu {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#quick_nav .quick_nav_item_icon {
    font-size: 1rem !important;
    color: #ffffff;
    text-shadow: none;
}

#quick_nav .quick_nav_item_label {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-heading, "Outfit", Arial, Helvetica, sans-serif);
}

#quick_nav .quick_nav_toggle:hover,
#quick_nav .quick_nav_item:hover {
    border-color: rgba(255, 255, 255, 0.56);
    color: #ffffff;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

@media (max-width: 768px) {
    .menu,
    .services_page_topbar,
    .contact_page_topbar,
    .desktop_quick_nav,
    .top_links,
    .index_top_links {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 8px);
        left: calc(env(safe-area-inset-left, 0px) + 8px);
        right: calc(env(safe-area-inset-right, 0px) + 8px);
        transform: none;
        z-index: 70;
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.3rem;
        width: auto;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.2rem 0.18rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .menu::-webkit-scrollbar,
    .services_page_topbar::-webkit-scrollbar,
    .contact_page_topbar::-webkit-scrollbar,
    .desktop_quick_nav::-webkit-scrollbar,
    .top_links::-webkit-scrollbar,
    .index_top_links::-webkit-scrollbar {
        display: none;
    }

    .menu a,
    .services_page_link,
    .contact_page_link,
    .desktop_quick_nav a,
    .top_links > .top_link,
    .index_top_link,
    .game_reaction .game_home_btn,
    .home-button,
    #quick_nav .quick_nav_toggle,
    #quick_nav .quick_nav_item {
        flex: 0 0 auto;
        gap: 0.24rem;
        padding: 0.26rem 0.48rem;
        border-radius: 13px;
        font-size: 0.62rem;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .game_reaction .game_home_btn {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 8px);
        left: calc(env(safe-area-inset-left, 0px) + 8px);
        z-index: 70;
        margin: 0;
    }

    .mobile_quick_nav {
        display: none !important;
    }

    .mobile_quick_nav * {
        pointer-events: none !important;
    }
}
