header {
    width: 100%;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.8rem clamp(0.9rem, 2.3vw, 2rem);
    background: var(--card-strong);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(7px);
    box-shadow: var(--shadow-1);
    position: relative;
    z-index: 20;
}

.left-container,
.right-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.left-logo {
    height: 56px;
    width: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem;
}

.site-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
}

.right-container {
    margin-right: 0.1rem;
    text-align: right;
    align-items: flex-end;
}

.hud-balance {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    padding: 0.42rem 0.64rem;
    color: #eef8ff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.hud-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(236, 246, 255, 0.82);
}

.hud-balance strong {
    font-family: "Chakra Petch", "Bricolage Grotesque", sans-serif;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    color: #ffffff;
}

@media screen and (max-width: 900px) {
    .site-title {
        display: none;
    }

    header {
        min-height: 80px;
        padding: 0.62rem 0.78rem;
    }

    .left-logo {
        height: 48px;
    }

    .hud-balance {
        padding: 0.34rem 0.54rem;
    }

    .hud-label {
        font-size: 0.67rem;
    }

    .hud-balance strong {
        font-size: 0.88rem;
    }
}
