.ability-bar {
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    background: linear-gradient(
        to bottom,
        rgba(130, 190, 240, 0.15),
        rgba(100, 170, 230, 0.08)
    );
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 8px rgba(80,150,220,0.10), 
        inset 0 0 6px rgba(80,150,220,0.06),
        inset 0 0 20px rgba(80,150,220,0.03);
    border: 1px solid rgba(150, 210, 240, 0.18);
    z-index: 9999;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.20));
}

.ability-slot {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background: linear-gradient(
        to bottom,
        rgba(110, 160, 210, 0.30),
        rgba(90, 140, 200, 0.22)
    );
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 
        inset 0 2px 3px rgba(255, 255, 255, 0.35), 
        inset 0 -2px 3px rgba(0, 0, 0, 0.08), 
        0 1px 2px rgba(80, 130, 200, 0.18);
}

.ability-slot::after {
    content: none;
}

.ability-slot img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.ability-slot img.hidden {
    display: none;
}

.ability-slot:hover {
    box-shadow: 
        inset 0 2px 3px rgba(255, 255, 255, 0.38), 
        inset 0 -2px 3px rgba(0, 0, 0, 0.10), 
        0 2px 4px rgba(80, 130, 200, 0.25);
}

.ability-slot.selected {
    border: 1.5px solid rgba(255, 255, 255, 0.20);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.35),
        rgba(210, 230, 255, 0.18)
    );
    box-shadow: 
        inset 0 2px 3px rgba(255, 255, 255, 0.32), 
        inset 0 -2px 3px rgba(0, 0, 0, 0.05), 
        0 0 3px rgba(80,130,200,0.12);
}

.ability-bar svg {
    width: 60%;
    height: 60%;
    stroke: var(--primary-ui-color);
    fill: none;
}

:root {
    --primary-ui-color: rgb(24, 42, 114);
}


#tooltext {
    position: absolute;
    bottom:120%;
    left: 50%;
    color: var(--primary-ui-color);
    font-size: 16px;
    
    
    font-family: arial;
    transform: translateX(-50%);
}