.site-header,
#masthead,
#site-navigation,
.main-navigation,
.zh-mobile-site-header {
    display: none !important;
}

.zh-home-app-header {
    position: sticky;
    top: 0;
    z-index: 9998;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #dce7f3;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 4px 20px rgba(25, 67, 112, .07);
    backdrop-filter: blur(14px);
}

body.admin-bar .zh-home-app-header { top: 32px; }

.zh-home-app-header__inner {
    display: grid;
    box-sizing: border-box;
    width: min(1380px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.zh-home-app-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #173b73 !important;
    text-decoration: none;
}

.zh-home-app-brand-mark {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    image-rendering: auto;
}
.zh-home-app-brand-mark::before {
    content: none;
}
.zh-home-app-brand-mark::after {
    content: none;
}
.zh-home-app-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
}

.zh-home-app-brand-mark:empty {
    background: transparent;
}
.zh-home-app-brand-mark:empty::before {
    position: absolute;
    inset: 0;
    background: url("../images/zockhelden-logo-160.webp") center / contain no-repeat;
    content: "";
}

.zh-home-app-brand-wordmark {
    display: flex;
    width: 242px;
    height: 42px;
    align-items: center;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", Poppins, Arial, sans-serif;
    font-size: 31px;
    font-weight: 900;
    letter-spacing: -1.7px;
    line-height: 1;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}
.zh-home-app-brand-wordmark b { color: #0872f9; font: inherit; }
.zh-home-app-brand-wordmark b + b { color: #ff7900; }

.zh-home-app-primary {
    display: flex;
    height: 78px;
    align-items: stretch;
    justify-content: center;
    gap: 3px;
}

.zh-home-app-primary a {
    position: relative;
    display: flex;
    min-width: 75px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 10px;
    color: #263a59 !important;
    font-size: .7rem;
    font-weight: 800;
    text-decoration: none;
}

.zh-home-app-primary a:hover,
.zh-home-app-primary a:focus-visible {
    background: #f2f7ff;
    color: #1769e7 !important;
}

.zh-home-app-primary a.is-current { color: #1769e7 !important; }
.zh-home-app-primary a.is-current::after {
    position: absolute;
    right: 11px;
    bottom: 0;
    left: 11px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #1769e7;
    content: "";
}

.zh-home-app-primary svg { width: 22px; height: 22px; }
.zh-home-app-primary i {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: currentColor;
    font-size: 1.15rem;
    font-style: normal;
    line-height: 1;
}

.zh-home-app-actions { display: flex; align-items: center; gap: 10px; }
.zh-home-app-daily {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    border: 1px solid #ffd467;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff4c8, #ffd969);
    box-shadow: 0 5px 14px rgba(255, 190, 36, .14);
    color: #173b73 !important;
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
}

.zh-home-app-profile {
    display: flex;
    min-width: 210px;
    align-items: center;
    gap: 9px;
    appearance: none;
    padding: 7px 10px;
    border: 1px solid #d5e1ef;
    border-radius: 14px;
    background: #f5f8fc;
    color: #173b73;
    cursor: pointer;
    text-align: left;
}

.zh-home-app-profile:hover,
.zh-home-app-profile:focus-visible {
    border-color: #9fc4eb;
    background: #edf5ff;
    outline: 0;
}

.zh-home-app-profile .zh-profile-progress { background: #dce7f3; }
.zh-home-app-header::after {
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #42b6ed 24%, #ffca3a 52%, #42b6ed 78%, transparent);
    content: "";
    opacity: .58;
}

body.zh-game-mode-open .zh-home-app-header { display: none !important; }
.zh-app-mobile-tabs { display: none; }

@media (max-width: 1180px) {
    .zh-home-app-header__inner { gap: 14px; }
    .zh-home-app-brand-wordmark { width: 185px; height: 33px; font-size: 26px; }
    .zh-home-app-primary a { min-width: 64px; padding-inline: 7px; }
    .zh-home-app-daily { display: none; }
    .zh-home-app-profile { min-width: 195px; }
}

@media (max-width: 900px) {
    .zh-home-app-header__inner { grid-template-columns: auto 1fr; }
    .zh-home-app-primary { display: none; }
    .zh-home-app-actions { justify-self: end; }
    .zh-home-app-brand-wordmark { width: 190px; height: 34px; font-size: 27px; }
}

@media (max-width: 768px) {
    body { padding-bottom: 72px; }
    body.admin-bar .zh-home-app-header { top: 46px; }
    .zh-home-app-header__inner { width: calc(100% - 24px); min-height: 66px; }
    .zh-home-app-brand-mark { width: 44px; height: 44px; flex-basis: 44px; overflow: visible; }
    .zh-home-app-brand-mark img { width: 100%; height: 100%; object-fit: contain; object-position: center; clip-path: none; }
    .zh-home-app-brand-mark:empty::before { inset: 0; background-size: contain; background-position: center; }
    .zh-home-app-brand-wordmark { width: 150px; height: 28px; font-size: 22px; letter-spacing: -1.2px; }
    .zh-home-app-profile { min-width: 0; width: 46px; height: 46px; padding: 6px; border-radius: 13px; }
    .zh-home-app-profile .zh-profile-compact-content,
    .zh-home-app-profile .zh-profile-streak { display: none; }
    .zh-home-app-profile .zh-profile-level { width: 32px; height: 32px; }
    .zh-app-mobile-tabs {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9998;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        border-top: 1px solid #dce6f2;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -6px 20px rgba(23, 59, 115, .09);
        backdrop-filter: blur(12px);
    }
    .zh-app-mobile-tabs a,
    .zh-app-mobile-tabs button {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        appearance: none;
        padding: 3px 1px;
        border: 0;
        background: transparent;
        color: #526b8c;
        font: inherit;
        text-decoration: none;
    }
    .zh-app-mobile-tabs svg { width: 21px; height: 21px; }
    .zh-app-mobile-tabs strong { font-size: .58rem; }
    .zh-app-mobile-tabs .is-current { color: #1769e7; }
    body.zh-game-mode-open { padding-bottom: 0; }
    body.zh-game-mode-open .zh-app-mobile-tabs { display: none !important; }
}

@media (max-width: 390px) {
    .zh-home-app-brand-wordmark { width: 128px; height: 24px; font-size: 19px; }
}
