#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 15;
    pointer-events: none;
}

#hud-hp {
    flex-direction: row;
    gap: 6px;
}

#hud-hp .hud-label {
    color: #ff4757;
}

#hud-hp .hud-value {
    min-width: auto;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #ff4757;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

#hud-left, #hud-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

#hud-center {
    position: absolute;
    left: 50%;
    top: 50px;
    transform: translateX(-50%);
}

.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hud-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}

.hud-value {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    min-width: 60px;
    text-align: center;
}

.coin-icon {
    font-size: 1.2rem;
}

#hud-coins {
    flex-direction: row;
    gap: 6px;
}

#hud-coins .hud-value {
    min-width: auto;
}

.hud-btn {
    pointer-events: all;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hud-btn:hover {
    background: rgba(255,255,255,0.3);
}

#combo-display {
    background: linear-gradient(135deg, #ff6b35, #ff2e63);
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
    animation: comboPulse 0.5s ease-in-out infinite alternate;
    white-space: nowrap;
}

@keyframes comboPulse {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

#powerup-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.5);
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 15;
}

#powerup-icon {
    font-size: 1.3rem;
}

#powerup-bar-bg {
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

#powerup-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d2ff, #7b2ff7);
    border-radius: 3px;
    transition: width 0.1s linear;
}
