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

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: transparent;
    font-family: 'Proxima Nova', 'Montserrat', 'Gilroy', sans-serif;
    color: #ffffff;
    user-select: none;
    overflow: hidden;
}

#hud {
    position: fixed;
    top: 24px;
    right: 30px;
    overflow: visible;
    transition: opacity 0.3s ease;
}

#hud .hud-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: visible;
}

#hud.hud-content-hidden .hud-body {
    display: none !important;
}

#hud .hud-top {
    margin-bottom: 18px;
    transform: translateX(-19px);
}

#hud .hud-logo {
    display: block;
    height: 52px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

#hud .hud-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

#hud .hud-left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

#hud .hud-money {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: none;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 0;
    margin-right: -6px;
}

#hud .hud-icon {
    flex-shrink: 0;
    display: block;
    position: static;
    width: auto;
    height: auto;
    fill: currentColor;
}

#hud .hud-icon--money {
    width: 36px;
    height: 36px;
    filter: none;
}

#hud .hud-money span {
    font-size: 34px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

#hud .hud-bars {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

#hud .hud-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 170px;
}

#hud .hud-bar--hp { margin-left: 25px; }
#hud .hud-bar--arm { margin-left: 12px; }
#hud .hud-bar--eat { margin-left: 0; }

#hud .hud-bar .hud-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#hud .hud-bar--hp .hud-icon {
    filter: drop-shadow(0 0 2px rgba(255, 0, 0, 0.4));
}

#hud .hud-bar--arm .hud-icon {
    filter: drop-shadow(0 0 2px rgba(59, 102, 245, 0.4));
}

#hud .hud-bar--eat .hud-icon {
    filter: drop-shadow(0 0 2px rgba(245, 140, 40, 0.4));
}

#hud .hud-bar__track {
    flex-grow: 1;
    height: 6px;
    background-color: rgba(110, 110, 110, 0.32);
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.15);
}

#hud .hud-bar__fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.2s ease-out;
}

#hud .hud-bar--hp .hud-bar__fill { background-color: #ff0000; }
#hud .hud-bar--arm .hud-bar__fill { background-color: #3b66f5; }
#hud .hud-bar--eat .hud-bar__fill { background-color: #f58c28; }

#hud .hud-bar__knob {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.35);
    transition: left 0.2s ease-out;
}

#hud .hud-bar__value {
    width: 25px;
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

#hud .hud-weapon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: -22px;
    flex-shrink: 0;
}

#hud .hud-weapon {
    position: relative;
    width: 190px;
    height: 165px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hud .hud-weapon__triangle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76%;
    height: 76%;
    z-index: 1;
    transform: translate(-64%, -50%);
    filter: drop-shadow(0 0 4px rgba(162, 246, 255, 0.45)) drop-shadow(0 0 8px rgba(90, 104, 232, 0.25));
}

#hud .hud-weapon__icon {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    object-fit: contain;
    transform: translateX(-10px);
    filter: drop-shadow(0 0 4px rgba(162, 246, 255, 0.35)) drop-shadow(0 0 8px rgba(90, 104, 232, 0.2));
}

#hud .hud-weapon__ammo {
    font-size: 24px;
    font-weight: 800;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin-top: -22px;
    position: relative;
    z-index: 3;
    transform: translateX(-10px);
}
