#action-bar {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid color-mix(in srgb, var(--ui-accent) 30%, #444 70%);
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
}

#inventory-slots, #skills-slots {
    display: flex;
    gap: 12px;
}

.separator {
    width: 2px;
    height: 40px;
    background: #444;
    margin: 0 4px;
}

.inv-slot, .skill-slot {
    position: relative;
    width: 50px;
    height: 50px;
    background: #111;
    border: 2px solid #333;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 8px rgba(255,255,255,0.08);
    transition: border-color 0.1s, box-shadow 0.1s;
    cursor: pointer;
}

.inv-slot:hover, .skill-slot:hover {
    border-color: #666;
    transform: translateY(-2px);
}

.inv-slot .hotkey, .skill-slot .hotkey {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #ffcc00;
    color: #000;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: bold;
}

.inv-slot .icon, .skill-slot .icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.inv-slot .icon img, .skill-slot .icon img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.inv-slot .count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    padding: 0;
    font-size: 14px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 0 2px #000, 0 1px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000;
    pointer-events: none;
}

.skill-slot.cooldown {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #552222;
}

.skill-slot .cd-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #f55;
    border-radius: 4px;
}

.inv-slot.auto-on {
    border-color: #55ff55;
    box-shadow: 0 0 10px rgba(85,255,85,0.4), inset 0 0 8px rgba(85,255,85,0.15);
}

.inv-slot.auto-on::after {
    content: 'AUTO';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #1b2a1b;
    color: #7cff7c;
    border: 1px solid #2f6f2f;
    border-radius: 4px;
    font-size: 8px;
    padding: 1px 4px;
    z-index: 1;
}

#legend-toggle {
    background: #222;
    color: #fff;
    border: 1px solid color-mix(in srgb, var(--ui-accent) 35%, #555 65%);
    padding: 6px 10px;
    font-family: 'Press Start 2P', monospace;
    cursor: pointer;
}
