* {
    box-sizing: border-box;
}
.zhud {
    background: linear-gradient(to bottom, #111, #070707);
    border-bottom: 2px solid #2a2a2a;
    padding: 8px 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
    font-family: Arial, sans-serif;
}
.zhud-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}
.level-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    width: 32px;
}
.level-box {
    width: 52px;
    height: 52px;
    position: relative;
}
.level-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.level-value {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 0 black;
    pointer-events: none;
}
.exp-bar {
    width: 100%;
    height: 6px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    overflow: hidden;
}
.exp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #8b5a00, #ffb300);
}
.exp-text {
    font-size: 8px;
    color: #aaa;
    text-align: center;
    line-height: 1;
}
.stats {
    flex: 1;
    min-width: 120px;
}
.zbar {
    height: 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    margin-bottom: 4px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.zfill {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}
.hpfill { background: linear-gradient(to right, #4b0000, #ff1a1a); }
.stamfill { background: linear-gradient(to right, #666, #f5f5f5); }
.ztext {
    position: relative;
    z-index: 2;
    font-size: 9px;
    color: white;
    padding-left: 4px;
    line-height: 16px;
    text-shadow: 0 1px 1px black;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.icons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #444;
    background: #111;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 0 6px rgba(255,255,255,.08);
    transition: 0.2s;
}
.icon-btn-green {
    border-color: #2a7a1d;
    box-shadow: 0 0 8px rgba(0,255,0,.3);
}
.icon-btn:hover {
    border-color: #7a1d1d;
    box-shadow: 0 0 8px rgba(255,0,0,.3);
}
.money-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px solid #2a2a2a;
}
.money-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 20px;
}
.money-item img {
    width: 18px;
    height: 18px;
}
.money-item a, .money-item span {
    color: white;
    text-decoration: none;
    font-size: 13px;
}
.money-item a:hover {
    text-decoration: underline;
}
.token { color: #ffcc44; }
.arena-coin { color: #0cb5e2; }

@media (max-width: 550px) {
    .zhud { padding: 6px 8px; }
    .zhud-wrap { gap: 6px; }
    .level-block { width: 48px; }
    .level-box { width: 48px; height: 48px; }
    .level-value { font-size: 14px; bottom: 1px; }
    .exp-text { font-size: 7px; }
    .stats { min-width: 100px; }
    .zbar { height: 14px; margin-bottom: 3px; }
    .ztext { font-size: 8px; line-height: 14px; padding-left: 3px; }
    .icon-btn { width: 32px; height: 32px; padding: 3px; }
    .money-item { padding: 1px 6px; gap: 3px; }
    .money-item img { width: 16px; height: 16px; }
    .money-item a, .money-item span { font-size: 12px; }
}
@media (max-width: 450px) {
    .zhud-wrap { flex-wrap: wrap; }
    .stats { order: 2; width: 100%; margin-top: 4px; }
    .icons { order: 1; }
    .level-block { order: 0; }
}